<?php
// +---------------------------------------------------------------------------------
// | ECODE [ 随心而行 勿忘始终]
// +---------------------------------------------------------------------------------
// | Copyright (c) 2017 ECODE All rights reserved.
// +---------------------------------------------------------------------------------
// | Author: 鬼谷子 <majianwei168@outlook.com>
// +---------------------------------------------------------------------------------
namespace app\admin\logic;
use think\Model;
use app\admin\model\Menu;
class System extends Model
{
    public function menuList()
    {
        $menuModel = new Menu();
        return $menuModel->lists();
    }

    public function menuUpdate($data,$id=null)
    {
        $menuModel = new Menu();
        return $menuModel->updates($data,$id);
    }

    public function menu($id)
    {
        $menuModel = new Menu();
        return $menuModel->one($id);
    }

    public function menuDel($id)
    {
        $menuModel = new Menu();
        return $menuModel->del($id);
    }
}